AmpProject\AmpWP\MobileRedirection A

Total Complexity 67
Dependencies 5
Dependents 0
Total lines 540
Lines of code 276
Logical lines of code 131
Comment lines 218
Methods 19
Properties 0

Methods 19

Method Rating Maintainability Complexity Lines of code
redirect()
A
45 14 39
add_mobile_version_switcher_link()
A
43 7 51
is_mobile_request()
S
52 7 25
sanitize_script_attributes()
S
58 6 14
set_mobile_redirection_disabled_cookie()
S
48 4 36
add_mobile_version_switcher_styles()
S
59 4 14
get_inline_script_tag()
S
64 4 8
filter_amp_to_amp_linking_element_excluded()
S
63 3 11
add_mobile_redirect_script()
S
55 2 19
is_using_client_side_redirection()
S
70 3 6
register()
S
65 2 8
is_redirection_disabled_via_query_param()
S
77 2 3
filter_amp_to_amp_linking_element_query_vars()
S
71 2 6
sanitize_options()
S
70 2 6
get_mobile_user_agents()
S
63 1 12
is_redirection_disabled_via_cookie()
S
79 1 3
filter_default_options()
S
76 1 4
get_current_amp_url()
S
72 1 5
add_mobile_alternative_link()
S
72 1 6